
<?php
require_once '../config/config.php';
?>


<?php


$connect = mysql_connect($host . ":" . $port, $user, $pass ,$username) or die(mysql_error());            
mysql_select_db($username, $connect); 


    
function getData($query) {
    global $connect;
    $pages = array();   
  
    $data = mysql_query($query, $connect);
    while ($row = mysql_fetch_assoc($data)) {
        $pages[] = $row;
    }

    return $pages;
}




